package org.wangchaocheng.cloudgallery.controller;

import com.alibaba.cola.dto.SingleResponse;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 系统
 * @author wangchaocheng
 * @date 2025-03-14
 **/
@RestController
public class MainController {

    /**
     * 健康检查
     * @return {@link SingleResponse}<{@link Boolean}> true live false die
     */
    @GetMapping("health")
    public SingleResponse<Boolean> health() {
        return SingleResponse.of(Boolean.TRUE);
    }

}
